<?php
namespace app\index\validate;

use think\Validate;

class AddUser extends Validate{
//    protected $regex=['zip'=>'/^1[0-9]\d{9}$/'];
    protected $rule=[

        'username|用户名'=>'require|min:5|max:50|unique:users|token',
        'nickname|昵称'=>'require|max:50|min:2',
        'password|密码'=>'require|alphaNum|min:6',
        'rpwd|重复密码'=>'require|confirm:password',
//        'birthday|生日'=>'date',
//        'mobile|手机号'=>'regex:zip|unique:users',
        'email|电子邮件'=>'require|email|unique:users',
        'profiles|个人简介'=>'require|chsDash|max:50',
    ];




}

